package org.example.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 每天睡眠记录表
 */
@Data
@TableName("sleep_record")
public class SleepRecord {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户的openId
     */
    private String openId;

    /**
     * 周几
     */
    private Short weekDay;

    /**
     * 总卧床时长
     */
    private Double sleepTime;

    /**
     * 清醒次数
     */
    private Integer awakeCount;


    /**
     * 实际睡眠时长
     */
    private Double actualSleepTime;

    /**
     * 睡眠效率
     */
    private String sleepEfficiency;



    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
